package com.example.libary.dto;

import com.example.libary.entity.User;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录响应实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "登录响应")
public class LoginResponse {
    
    /**
     * 令牌
     */
    @Schema(description = "JWT令牌")
    private String token;
    
    /**
     * 用户信息
     */
    @Schema(description = "用户信息")
    private User user;
}
